package com.service;

import com.dao.SystemDao;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by wlc on 2018/7/26.
 */
public class SystemOperator {
    /**
     * 用于获取数据库当前数目条数
     * @return
     */
    public static HashMap getDataNum(){
        //QM
        int qm = SystemDao.getQMPartDataNum();
        //Experiment
        int experiment = SystemDao.getExperimentPartDataNum();
        //BoneTumor
        int bone_tumor = SystemDao.getBoneTumorPartDataNum();
        //Clinical
        int clinical_data = SystemDao.getClinicalPartDateNum();

        return new HashMap<String, String>(){{
            put("QM",String.valueOf(qm));
            put("Experiment",String.valueOf(experiment));
            put("BoneTumor",String.valueOf(bone_tumor));
            put("Clinical", String.valueOf(clinical_data));
        }};
    }
}
